import request from "@/utils/request.js";

export function getFile(data){
    return request({
        url:'/sys/file/listPage',
        method:'post',
        data
    })
}

export function getParentFile(data){
    return request({
        url:'/sys/file/listPageByType',
        method:'post',
        data
    })
}

export function newFolder(data){
    return request({
        url:'sys/file/createFolder',
        method:'post',
        data
    })
}

export function getFileInfoById(fileId){
    return request({
        url:'sys/file/info/'+fileId,
        method:'get'
    })
}